try { var dummy = AutoAcceptAuth; } catch ( e ) {


function AutoAcceptAuth(){
}

// Required for AS 1 inheritance.
AutoAcceptAuth.prototype = new RTCFComponent();


AutoAcceptAuth.prototype.init = function(){
	this.rtcf.addListener("onConnect", this);
	this.rtcf.addListener("onAuthenticate", this);	
	this.rtcf.addListener("onAuthorize", this);	
	this.rtcf.addListener("onAuthorizedConnect", this);	
	this.rtcf.addListener("onAuthorizedDisconnect", this);	
	this.rtcf.addListener("onDisconnect", this);		
	this.rtcf.addListener("onRejectedDisconnect", this);	
}


AutoAcceptAuth.prototype.onConnect = function(client){
	trace(this._rmiID_ + ".onConnect> client: " + client + ", number of arguments: " + arguments.length);

	this.rtcf.authenticationResult(client, "You win!"); 
	
}


AutoAcceptAuth.prototype.onAuthenticate = function(client){
	trace(this._rmiID_ + ".onAuthenticate> client: " + client + ", number of arguments: " + arguments.length);

	this.rtcf.authorizationResult(client, "You win!"); 
	
}


AutoAcceptAuth.prototype.onAuthorize = function(client){
	trace(this._rmiID_ + ".onAuthorize> client: " + client + ", number of arguments: " + arguments.length);	
}

AutoAcceptAuth.prototype.onAuthorizedConnect = function(client){
	trace(this._rmiID_ + ".onAuthorizedConnect> client: " + client + ", number of arguments: " + arguments.length);	
}


AutoAcceptAuth.prototype.onAuthorizedDisconnect = function(client){
	trace(this._rmiID_ + ".onAuthorizedDisconnect> client: " + client + ", number of arguments: " + arguments.length);	
}

AutoAcceptAuth.prototype.onRejectedDisconnect = function(client){
	trace(this._rmiID_ + ".onRejectedDisconnect> client: " + client + ", number of arguments: " + arguments.length);	
}

} // end catch
